std::basic_istream::peek
From Cppreference
< cpp | io | basic istream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_istream | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| int_type peek();
| ||
Reads the next character from the input stream without extracting it.
Contents |
[edit] Parameters
(none)
[edit] Return value
the next character if good() == true, Traits::eof() otherwise.
[edit] Example
| This section is incomplete |
[edit] See also
| extracts characters (public member function) | |
| unextracts a character (public member function) | |